package com.ruoyi.common.business.service.impl;

import com.ruoyi.common.business.entity.YytMember;
import com.ruoyi.common.business.dao.YytMemberMapper;
import com.ruoyi.common.business.service.YytMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.oms.entity.YytOmsOrder;
import com.ruoyi.common.oms.entity.YytOmsOrderItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* <p>
    * 会员表 服务实现类
    * </p>
*
* @author huangshun
* @since 2021-12-16
*/
@Service
public class YytMemberServiceImpl extends ServiceImpl<YytMemberMapper, YytMember> implements YytMemberService {

    @Autowired
    private YytMemberMapper yytMemberMapper;

    /**
     * 计算用户购买返利金额
     *
     * @param orderId
     */
    @Override
    public void getCountRebate(String orderId, String memberId) {
        yytMemberMapper.updateMember(orderId, memberId);
    }
}
